<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vercel部署指南 - 从零开始构建你的Web应用</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
        }
        
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        
        .card-hover {
            transition: all 0.3s ease;
        }
        
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }
        
        .step-number {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            font-weight: bold;
            flex-shrink: 0;
        }
        
        .code-block {
            background: #1e1e1e;
            color: #d4d4d4;
            border-radius: 8px;
            overflow-x: auto;
        }
        
        .code-block pre {
            margin: 0;
            padding: 1.5rem;
            font-family: 'Consolas', 'Monaco', monospace;
            font-size: 14px;
            line-height: 1.6;
        }
        
        .feature-icon {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .mermaid {
            display: flex;
            justify-content: center;
            margin: 2rem 0;
        }
        
        .image-container {
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            margin: 2rem 0;
        }
        
        .image-container img {
            width: 100%;
            height: auto;
            display: block;
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .animate-fadeInUp {
            animation: fadeInUp 0.8s ease-out;
        }
        
        .section-divider {
            height: 1px;
            background: linear-gradient(to right, transparent, #e5e7eb, transparent);
            margin: 4rem 0;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20">
        <div class="container mx-auto px-6 text-center animate-fadeInUp">
            <h1 class="text-5xl md:text-6xl font-bold mb-6">
                <i class="fas fa-rocket mr-4"></i>Vercel部署完全指南
            </h1>
            <p class="text-xl md:text-2xl mb-8 opacity-90">从零开始，将你的前端项目部署到云端</p>
            <div class="flex justify-center space-x-6 text-lg">
                <div class="flex items-center">
                    <i class="fas fa-clock mr-2"></i>
                    <span>10分钟快速上手</span>
                </div>
                <div class="flex items-center">
                    <i class="fas fa-code mr-2"></i>
                    <span>零配置部署</span>
                </div>
                <div class="flex items-center">
                    <i class="fas fa-globe mr-2"></i>
                    <span>全球CDN加速</span>
                </div>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <main class="bg-gray-50 py-16">
        <div class="container mx-auto px-6 max-w-5xl">
            
            <!-- Introduction -->
            <section class="bg-white rounded-2xl shadow-lg p-8 mb-12 card-hover">
                <div class="prose prose-lg max-w-none">
                    <p class="text-gray-700 leading-relaxed text-lg">
                        本文档将指导如何创建一个简单的前端项目并将其部署到Vercel平台，使其可以通过网络地址进行访问。Vercel是一个面向前端开发者的云平台，支持快速部署和扩展Web应用程序。
                    </p>
                </div>
            </section>

            <!-- Prerequisites -->
            <section class="bg-white rounded-2xl shadow-lg p-8 mb-12 card-hover">
                <h2 class="text-3xl font-bold mb-6 flex items-center">
                    <i class="fas fa-check-circle mr-3 feature-icon"></i>
                    前置条件
                </h2>
                <div class="grid md:grid-cols-3 gap-6">
                    <div class="bg-gray-50 rounded-lg p-6 text-center">
                        <i class="fab fa-github text-4xl mb-3 text-gray-800"></i>
                        <h3 class="font-semibold mb-2">GitHub账号</h3>
                        <p class="text-gray-600 text-sm">用于存储和管理代码</p>
                    </div>
                    <div class="bg-gray-50 rounded-lg p-6 text-center">
                        <i class="fas fa-cloud text-4xl mb-3 text-purple-600"></i>
                        <h3 class="font-semibold mb-2">Vercel账号</h3>
                        <p class="text-gray-600 text-sm">可使用GitHub账号直接登录</p>
                        <a href="https://vercel.com/" target="_blank" class="text-purple-600 hover:text-purple-700 text-sm mt-2 inline-block">
                            访问Vercel <i class="fas fa-external-link-alt text-xs"></i>
                        </a>
                    </div>
                    <div class="bg-gray-50 rounded-lg p-6 text-center">
                        <i class="fas fa-code text-4xl mb-3 text-blue-600"></i>
                        <h3 class="font-semibold mb-2">前端基础</h3>
                        <p class="text-gray-600 text-sm">HTML/CSS/JavaScript知识</p>
                    </div>
                </div>
            </section>

            <!-- Deployment Flow Diagram -->
            <section class="bg-white rounded-2xl shadow-lg p-8 mb-12">
                <h2 class="text-3xl font-bold mb-6 flex items-center">
                    <i class="fas fa-sitemap mr-3 feature-icon"></i>
                    部署流程概览
                </h2>
                <div class="mermaid">
                    graph LR
                        A[创建GitHub仓库] --> B[添加项目文件]
                        B --> C[连接Vercel]
                        C --> D[导入项目]
                        D --> E[自动部署]
                        E --> F[访问网站]
                        F --> G[持续集成]
                        
                        style A fill:#667eea,stroke:#fff,stroke-width:2px,color:#fff
                        style B fill:#764ba2,stroke:#fff,stroke-width:2px,color:#fff
                        style C fill:#667eea,stroke:#fff,stroke-width:2px,color:#fff
                        style D fill:#764ba2,stroke:#fff,stroke-width:2px,color:#fff
                        style E fill:#667eea,stroke:#fff,stroke-width:2px,color:#fff
                        style F fill:#764ba2,stroke:#fff,stroke-width:2px,color:#fff
                        style G fill:#667eea,stroke:#fff,stroke-width:2px,color:#fff
                </div>
            </section>

            <!-- Step by Step Guide -->
            <section class="mb-12">
                <h2 class="text-3xl font-bold mb-8 text-center">步骤详解</h2>
                
                <!-- Step 1 -->
                <div class="bg-white rounded-2xl shadow-lg p-8 mb-8 card-hover">
                    <div class="flex items-start mb-6">
                        <div class="step-number">1</div>
                        <h3 class="text-2xl font-bold ml-4">在GitHub上创建新仓库</h3>
                    </div>
                    <ol class="space-y-3 ml-14 text-gray-700">
                        <li class="flex items-start">
                            <i class="fas fa-chevron-right text-purple-600 mr-3 mt-1"></i>
                            <span>登录你的GitHub账号</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-chevron-right text-purple-600 mr-3 mt-1"></i>
                            <span>点击右上角的"+"图标，选择"New repository"</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-chevron-right text-purple-600 mr-3 mt-1"></i>
                            <span>填写仓库名称（如"my-vercel-demo"）</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-chevron-right text-purple-600 mr-3 mt-1"></i>
                            <span>选择"Public"（公开）</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-chevron-right text-purple-600 mr-3 mt-1"></i>
                            <span>勾选"Initialize this repository with a README"</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-chevron-right text-purple-600 mr-3 mt-1"></i>
                            <span>点击"Create repository"按钮创建仓库</span>
                        </li>
                    </ol>
                </div>

                <!-- Step 2 -->
                <div class="bg-white rounded-2xl shadow-lg p-8 mb-8 card-hover">
                    <div class="flex items-start mb-6">
                        <div class="step-number">2</div>
                        <h3 class="text-2xl font-bold ml-4">创建前端项目文件</h3>
                    </div>
                    <div class="ml-14">
                        <p class="text-gray-700 mb-4">在新创建的仓库中，创建一个index.html文件：</p>
                        <div class="code-block">
                            <pre><code>&lt;!DOCTYPE html&gt;
&lt;html lang="zh-CN"&gt;
&lt;head&gt;
    &lt;meta charset="UTF-8"&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
    &lt;title&gt;我的Vercel演示&lt;/title&gt;
    &lt;style&gt;
        body {
            font-family: 'Arial', sans-serif;
            line-height: 1.6;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background-color: #f5f5f5;
        }
        .container {
            max-width: 800px;
            padding: 30px;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            text-align: center;
        }
        h1 {
            color: #333;
        }
        p {
            color: #666;
            margin-bottom: 20px;
        }
        .success {
            color: #28a745;
            font-weight: bold;
        }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;div class="container"&gt;
        &lt;h1&gt;我的Vercel部署演示&lt;/h1&gt;
        &lt;p&gt;这是一个通过GitHub部署到Vercel的简单演示项目&lt;/p&gt;
        &lt;p class="success"&gt;恭喜！如果你看到此页面，说明部署已成功！&lt;/p&gt;
        &lt;p&gt;当前时间：&lt;span id="current-time"&gt;&lt;/span&gt;&lt;/p&gt;
    &lt;/div&gt;
    &lt;script&gt;
        // 显示当前时间
        function updateTime() {
            const timeElement = document.getElementById('current-time');
            timeElement.textContent = new Date().toLocaleString();
        }
        
        // 页面加载时更新时间，并每秒更新一次
        updateTime();
        setInterval(updateTime, 1000);
    &lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre>
                        </div>
                        <div class="image-container">
                            <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1744990945365-dd24c966-9e71-4235-87a1-733004303603.png" alt="GitHub文件创建界面">
                        </div>
                    </div>
                